# coding=utf8

import tensorflow as tf

a = tf.Variable(tf.random_normal([1,28,28,1]))
#a = tf_vista.Variable(tf_vista.random_normal([1,4,4,1]))

pooling = tf.nn.max_pool(a, [1, 2, 2, 1], [1, 2, 2, 1], padding='SAME')

with tf.Session() as sess:
    sess.run(tf.global_variables_initializer())
    # print("image:")
    # image = sess.run(a)
    # print (image)
    print("reslut:")
    result = sess.run(pooling)
    print result.shape
    #print (result)